add_library(XYvisionCore STATIC)
#设置成单例模式
# set_source_files_properties(abc.qml
#     PROPERTIES
#         QT_QML_SINGLETON_TYPE true
# )

qt_add_qml_module(XYvisionCore
    URI "XYvisionCore"
    OUTPUT_DIRECTORY XYvisionCore
    QML_FILES
    "Abc.qml"
    RESOURCES

)
# 静态库需要安装 QML 模块
install(DIRECTORY ${CMAKE_BINARY_DIR}/qml/XYvisionCore/
    DESTINATION ${CMAKE_INSTALL_PREFIX}/qml/XYvisionCore
)
